package com.zeei.ems.base.security.respone;

import lombok.Data;

@Data
public class LoginResult {

    private Boolean success;
    private int code;
    private String message;

    public static LoginResult SUCCESS() {
        LoginResult loginResult = new LoginResult();
        loginResult.setSuccess(true);
        loginResult.setCode(1000);
        loginResult.setMessage("登录成功");
        return loginResult;
    }

    public static LoginResult FAIL() {
        LoginResult loginResult = new LoginResult();
        loginResult.setSuccess(false);
        loginResult.setCode(99997);
        loginResult.setMessage("用户名或密码错误！");
        return loginResult;
    }

    public static LoginResult CREDENTIALS_ERROR(){

        return null;
    }

}
